package com.gxy.learn.design.model.create.singleton;

/**
 * @description: 饿汉式单例 静态代码块
 * @author: gaoxueyong
 * @Date: 2022/11/6 16:54
 */
public class SingletonHungryStaticCode {
    private SingletonHungryStaticCode() {
    }

    private static SingletonHungryStaticCode instance;

    static {
        instance = new SingletonHungryStaticCode();
    }

    public static SingletonHungryStaticCode getInstance() {
        return instance;
    }
}
